package com.east;

import java.io.IOException;
import java.lang.instrument.Instrumentation;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentSkipListMap;

public class ReadExcel {

    private static Instrumentation inst;

    public static void main(String[] args) throws IOException {

        ConcurrentSkipListMap<String, String> map = new ConcurrentSkipListMap<>();
        map.put("9","100");

        Object o = map.get("9");

        System.out.println();

//        FileInputStream inputStream = new FileInputStream("积分中心数据库.xlsx");
//        Workbook workbook = new XSSFWorkbook(inputStream);
//        int numberOfSheets = workbook.getNumberOfSheets();
//        for (int i = 0; i < numberOfSheets; i++) {
//            Sheet sheet = workbook.getSheetAt(i);
//            System.out.println("Sheet " + (i + 1) + ": " + sheet.getSheetName());
//            System.out.println(sheet.getSheetName());
//        }

        List<Integer> list = new ArrayList<>();
        list.add(990);
        list.add(888);
        list.add(777);



        for (int i = 0; i < 20; i++) {
            new Thread(() -> {
                System.out.println(Thread.currentThread().getName());
            }).start();
        }
    }
}

/**
 * 有菜单表menu如下：
 *
 * id   name   parent_id
 *
 * ----------------------------
 *
 * 1     A      NULL
 *
 * 2     B      1
 *
 * 3     C      5
 *
 * 4     E      NULL
 *
 * 5     F      2
 *
 * 6     G     4
 *
 * 子菜单的 parent_id 为其父级菜单的 id，该表对应的实体类为 Menu，
 * 补全代码实现将 Menu类型列表转换为层级结构的 MenuBo类型列表（子菜单对象均在父菜单对象的childList中）。
 * 注意：menuList中的元素可能乱序。
 *
 * public class Menu {
 *     private Long id;
 *     private String name;
 *     private Long parentId;
 *
 * }
 *
 * public class MenuBo {
 *     private Long id;
 *     private String name;
 *     private List<MenuBo> childList;
 *
 * }
 * '66836788991'
 * ,'66836802851'
 * ,'66836769907'
 * ,'66836777968'
 * ,'66836777950'
 * ,'66836777918'
 * ,'66836779938'
 * ,'66836791280'
 * ,'66836776218'
 * ,'66836777366'
 */

